package com.zyjlab.mqdemo.controller;

import com.zyjlab.mqdemo.util.MQSendUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendMsgController {
    @Autowired
    private MQSendUtil mqSendUtil;

    @GetMapping("sendMsg")
    public String sendMsg(){
        mqSendUtil.sendMsg();
        return "Success";
    }

}
